package com.tianji.learning.controller;


import com.tianji.common.domain.dto.PageDTO;
import com.tianji.learning.domain.query.ReplyPageQuery;
import com.tianji.learning.domain.vo.ReplyVO;
import com.tianji.learning.service.IInteractionReplyService;
import io.swagger.annotations.Api;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 互动提问的问题表 前端控制器
 * </p>
 *
 * @author 东哥
 * @since 2023-11-06
 */
@Api(tags = "互动问答-管理端-回答的相关接口")
@RestController
@RequestMapping("/admin/replies")
@RequiredArgsConstructor
public class InteractionReplyAdminController {
    private final IInteractionReplyService replyService;

    /**
     * 分页查询回答或评论列表  实战 3
     *
     * @param replyPageQuery
     * @return
     */
    @GetMapping("/page")
    public PageDTO<ReplyVO> adminQueryReply(ReplyPageQuery replyPageQuery) {
        return replyService.queryReply(replyPageQuery, false);
    }


}
